#ifndef X11DISPLAY_H
#define X11DISPLAY_H

#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xresource.h>

struct x11displayinfo {
    Window rootwindow;
    Display *display;
};

extern int mousexpos, mouseypos; 

struct x11displayinfo * setupx11display();
XImage * grabimage(struct x11displayinfo *di, int x, int y, int w, int h);

#endif
